package com.airycode.distribution.distribution1.repository;

import com.airycode.distribution.distribution1.domain.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by zkr-fanxirui on 2017/8/15.
 */
public interface UserRepository extends JpaRepository<UserEntity,String>,JpaSpecificationExecutor<UserEntity> {

    //根据用户名和密码查找用户
    List<UserEntity> findByUserNameAndUserPassword(String userName,String userPassword);

}
